package com.platform.api.dao;

import org.apache.ibatis.annotations.Mapper;

import com.platform.api.entity.AdVo;
import com.platform.common.dao.BaseDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author lipengjun
 * @email 939961241@qq.com
 * @gitee https://gitee.com/fuyang_lipengjun/platform
 * @date 2017-08-11 09:14:25
 */
@Mapper
@Repository
public interface ApiAdMapper{     // extends BaseDao<AdVo> {
    int save(AdVo t);
    void save(Map<String, Object> map);
//    void saveBatch(List<AdVo> list);
    int update(AdVo t);
    int update(Map<String, Object> map);
    int delete(Object id);
    int delete(Map<String, Object> map);
    int deleteBatch(Object[] id);
    AdVo queryObject(Object id);
    List<AdVo> queryList(Map<String, Object> map);
    List<AdVo> queryList(Object id);
    int queryTotal(Map<String, Object> map);
    int queryTotal();
}
